//
//  HomePage.m
//  TodayComment
//
//  Created by 张吉阳 on 15/9/12.
//  Copyright (c) 2015年 xianrenmoshi. All rights reserved.
//

#import "HomePage.h"
#import "FxNavigationController.h"
#import "CommentPage.h"
#import "MyPage.h"
#import "FxTabBar.h"
#import "FxDBManager.h"
#import "CollectionPage.h"
#import "FxClearChache.h"
#import "DKNightVersion.h"
@interface HomePage()
@property (strong, nonatomic) CommentPage     *commentPage;
@property (strong, nonatomic) FxNavigationController *navigationController;

@end

@implementation HomePage
- (void)viewDidLoad
{
    [super viewDidLoad];
    [self initCommentPage];
    
}
- (void)initCommentPage
{
    self.commentPage = [[CommentPage alloc] init];
    self.commentPage.view.frame = [[UIScreen mainScreen] bounds];
    [self addTabBar];
 
}

- (void)addTabBar
{
    NSMutableArray *controllers = [NSMutableArray array];
    self.navigationController = [[FxNavigationController alloc] initWithRootViewController:self.commentPage];
    [controllers addObject:_navigationController];

    [self addChildViewController:_navigationController];
}

/**
 *  设置statusbar的状态
 */
- (UIStatusBarStyle)preferredStatusBarStyle
{
    return UIStatusBarStyleLightContent;
}



@end
